<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Optimist Racing: C:/Users/Owner/My Programming/Personal Projects/VideoGames/Optimist Racing/src/Algebra.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Optimist Racing
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A video game where you must literally keep your head up</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_algebra_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Algebra.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_algebra_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*  Copyright (C) 2012  Claude Richard</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  This program is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *  (at your option) any later version.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *  This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  GNU General Public License for more details.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *  You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;algorithm&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;cmath&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="_algebra_8hpp.html#ae71449b1cc6e6250b91f539153a7a0d3">   26</a></span>&#160;<span class="preprocessor">#define M_PI 3.141592653589793</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="class_vector2_d.html">   34</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="class_vector2_d.html#a98e9997ebb7a629f4db52397d4e0d653" title="Makes a zero vector.">Vector2D</a>();</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="class_vector2_d.html#a98e9997ebb7a629f4db52397d4e0d653" title="Makes a zero vector.">Vector2D</a>( <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y );</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="class_vector2_d.html#a98e9997ebb7a629f4db52397d4e0d653" title="Makes a zero vector.">Vector2D</a>( <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; other );</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; <a class="code" href="class_vector2_d.html#a4fd6b530394125b8ece087531140a1fc" title="Makes a copy of the vector other.">operator=</a>( <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; other );</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordtype">double</span>&amp; <a class="code" href="class_vector2_d.html#afc8c3b48321e523c08c0ce18dd19574c">operator []</a>( <span class="keywordtype">size_t</span> idx );</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector2_d.html#afc8c3b48321e523c08c0ce18dd19574c">operator []</a>( <span class="keywordtype">size_t</span> idx ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector2_d.html#a218abf7d966c08db96f20628bfe826b1">euclideanNorm2</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector2_d.html#ae079733cfc3d4fe654065ce7f9d74248">euclideanNorm</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector2_d.html#abfb37d3be83891cb9b4cc21e5a3ab422" title="Returns the dot product between this and other.">dot</a>( <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_vector2_d.html#a3e453a6740502ed6e63b388015adfedd">normalize</a>();</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordtype">double</span> mV[2];</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;};</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="class_matrix2x2.html">   94</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_matrix2x2.html">Matrix2x2</a></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;{</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <a class="code" href="class_matrix2x2.html#aca3f61a3a1bce86fd10f3e8b70f70e81">Matrix2x2</a>();</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <a class="code" href="class_matrix2x2.html#aca3f61a3a1bce86fd10f3e8b70f70e81">Matrix2x2</a>( <span class="keyword">const</span> <a class="code" href="class_matrix2x2.html">Matrix2x2</a>&amp; other );</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <a class="code" href="class_matrix2x2.html#aca3f61a3a1bce86fd10f3e8b70f70e81">Matrix2x2</a>( <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; row1, <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; row2 );</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="class_matrix2x2.html#aca3f61a3a1bce86fd10f3e8b70f70e81">Matrix2x2</a>( <span class="keyword">const</span> <span class="keywordtype">double</span>* values );</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <a class="code" href="class_matrix2x2.html">Matrix2x2</a>&amp; <a class="code" href="class_matrix2x2.html#af1e1812c8ecd1f5fe0de70780e996b53">operator =</a>( <span class="keyword">const</span> <a class="code" href="class_matrix2x2.html">Matrix2x2</a>&amp; other );</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="class_matrix2x2.html#a3a03aae0dde8aaf2579bbead6e58c25a">getRow</a>( <span class="keywordtype">size_t</span> row ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordtype">double</span>* <a class="code" href="class_matrix2x2.html#a3a03aae0dde8aaf2579bbead6e58c25a">getRow</a>( <span class="keywordtype">size_t</span> row );</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="class_matrix2x2.html#a299ddc8aba2c00d3e61071ac8261b17a">getColumn</a>( <span class="keywordtype">size_t</span> col ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    </div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="class_matrix2x2.html#a83296205a183d5ab07aa6b4947c16bf2">operator []</a>( <span class="keywordtype">size_t</span> row ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordtype">double</span>* <a class="code" href="class_matrix2x2.html#a83296205a183d5ab07aa6b4947c16bf2">operator []</a>( <span class="keywordtype">size_t</span> row );</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <a class="code" href="class_matrix2x2.html">Matrix2x2</a> <a class="code" href="class_matrix2x2.html#a7630ef26f2a09c33137b680a468a114b">transpose</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <a class="code" href="class_matrix2x2.html">Matrix2x2</a> <a class="code" href="class_matrix2x2.html#a5c4d3f6f5ba43791cad0fd210886c0d6">invert</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_matrix2x2.html#a4498d52afa9436548e98105ac39f995a">determinant</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    </div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="class_matrix2x2.html#aa0c530a9fe1db1065a39af880ddbaca9">matrixSolve</a>( <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; b ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span>* <a class="code" href="class_matrix2x2.html#a7bdbb1745aae6fa25060c9db113f0fea">begin</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span>* <a class="code" href="class_matrix2x2.html#a763a2edfa907e05301e46f8864921bfe">end</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keywordtype">double</span> mV[4];</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;};</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="code" href="class_vector3_d.html">  181</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_vector3_d.html">Vector3D</a></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;{</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    </div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <a class="code" href="class_vector3_d.html#a0b11a8d75da427b27443d8a94d0d296c">Vector3D</a>();</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <a class="code" href="class_vector3_d.html#a0b11a8d75da427b27443d8a94d0d296c">Vector3D</a>( <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z );</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <a class="code" href="class_vector3_d.html#a0b11a8d75da427b27443d8a94d0d296c">Vector3D</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; other );</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; <a class="code" href="class_vector3_d.html#af08b65a17f2ba541d715507e7d283a54">operator=</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; other );</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    </div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keywordtype">double</span>&amp; <a class="code" href="class_vector3_d.html#a29b51ae3f30747c5f1915dfb6d716263">operator []</a>( <span class="keywordtype">size_t</span> idx );</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    </div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector3_d.html#a29b51ae3f30747c5f1915dfb6d716263">operator []</a>( <span class="keywordtype">size_t</span> idx ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector3_d.html#a0b88126c5cb26b88e9cd240215d51721">euclideanNorm2</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector3_d.html#a79e5a852ed84bdb0f83a1cc1edcf6d8b">euclideanNorm</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    </div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector3_d.html#adfea481bddc047a5a45454637e2018f9">dot</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    </div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="class_vector3_d.html#a81310eb5d5bd8d28feff3daf6abae149">cross</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    </div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_vector3_d.html#ae123dba26ebffc58cdc3484930179688">normalize</a>();</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keywordtype">double</span> mV[3];</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;};</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="code" href="class_matrix3x3.html">  243</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_matrix3x3.html">Matrix3x3</a></div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;{</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <a class="code" href="class_matrix3x3.html#ac6b901793405c0f36f65d6c4a624d0e7">Matrix3x3</a>();</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    </div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <a class="code" href="class_matrix3x3.html#ac6b901793405c0f36f65d6c4a624d0e7">Matrix3x3</a>( <span class="keyword">const</span> <a class="code" href="class_matrix3x3.html">Matrix3x3</a>&amp; other );</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    </div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <a class="code" href="class_matrix3x3.html#ac6b901793405c0f36f65d6c4a624d0e7">Matrix3x3</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; row1, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; row2, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; row3 );</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    </div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    <a class="code" href="class_matrix3x3.html#ac6b901793405c0f36f65d6c4a624d0e7">Matrix3x3</a>( <span class="keyword">const</span> <span class="keywordtype">double</span>* values );</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    </div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <a class="code" href="class_matrix3x3.html">Matrix3x3</a>&amp; <a class="code" href="class_matrix3x3.html#ab91b7dc85335166bdc20b77b8f9c34e9">operator =</a>( <span class="keyword">const</span> <a class="code" href="class_matrix3x3.html">Matrix3x3</a>&amp; other );</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    </div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="class_matrix3x3.html#a04888194a52b970549b5fbe40c5a80b3">getRow</a>( <span class="keywordtype">size_t</span> row ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    </div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <span class="keywordtype">double</span>* <a class="code" href="class_matrix3x3.html#a04888194a52b970549b5fbe40c5a80b3">getRow</a>( <span class="keywordtype">size_t</span> row );</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    </div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="class_matrix3x3.html#a3243d4730e65222094e8e7589ded5162">getColumn</a>( <span class="keywordtype">size_t</span> col ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    </div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="class_matrix3x3.html#a37f611d52839c3790c1983dced8cbf56">operator []</a>( <span class="keywordtype">size_t</span> row ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    </div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keywordtype">double</span>* <a class="code" href="class_matrix3x3.html#a37f611d52839c3790c1983dced8cbf56">operator []</a>( <span class="keywordtype">size_t</span> row );</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    </div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <a class="code" href="class_matrix3x3.html">Matrix3x3</a> <a class="code" href="class_matrix3x3.html#a6d2a2b5c4d1876a72aeada3879dc507b">transpose</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    </div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <a class="code" href="class_matrix3x3.html">Matrix3x3</a> <a class="code" href="class_matrix3x3.html#ac6c35af02989e2a20a0d661d665cc59d">invert</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    </div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_matrix3x3.html#a8d069ee838151dfd79fef81a5992bebc">determinant</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    </div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="class_matrix3x3.html#a9e92abe88ebfa2f898ea1c3a008d7615">matrixSolve</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; b ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    </div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span>* <a class="code" href="class_matrix3x3.html#ab6a79b3aca663ddb2362ee0639ffed3a">begin</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    </div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span>* <a class="code" href="class_matrix3x3.html#a2a4b6ee9463566d7aed3e1824e08d47e">end</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keywordtype">double</span> mV[9];</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;};</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno"><a class="code" href="class_vector_n_d.html">  330</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_vector_n_d.html">VectorND</a></div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;{</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    </div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <a class="code" href="class_vector_n_d.html#a04bf63cd09f861074f9f12cb8841fe9b">VectorND</a>( <span class="keywordtype">int</span> n );</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    </div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <a class="code" href="class_vector_n_d.html#a04bf63cd09f861074f9f12cb8841fe9b">VectorND</a>( <span class="keywordtype">int</span> n, <span class="keyword">const</span> <span class="keywordtype">double</span>* x );</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    </div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <a class="code" href="class_vector_n_d.html#a04bf63cd09f861074f9f12cb8841fe9b">VectorND</a>( <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; other );</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    </div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <a class="code" href="class_vector_n_d.html#a55968fd9a45e35a7fbed4c83cac9f0f3">~VectorND</a>();</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    </div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; <a class="code" href="class_vector_n_d.html#af2942aee65afd936668105cb738fc0ad">operator=</a>( <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; other );</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    </div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_vector_n_d.html#abdbff005e6ab42f1c4dcfb43bd34f185">getNum</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    </div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <span class="keywordtype">double</span>&amp; <a class="code" href="class_vector_n_d.html#ad28f82215e7d1451dcb56313f29a80d5">operator []</a>( <span class="keywordtype">size_t</span> idx );</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    </div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector_n_d.html#ad28f82215e7d1451dcb56313f29a80d5">operator []</a>( <span class="keywordtype">size_t</span> idx ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    </div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector_n_d.html#ab52f6d230cab5210b96d3e1017a6adea">euclideanNorm2</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    </div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector_n_d.html#abf2d675f51c1265689c8781dd4631cb7">euclideanNorm</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    </div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_vector_n_d.html#a23a9ef3d8c168a26a365fc1490ec04ef">dot</a>( <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    </div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_vector_n_d.html#a01b21f6af75960680cb3fb0117f4cb58">normalize</a>();</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    <span class="keywordtype">int</span> mN;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    <span class="keywordtype">double</span>* mV;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;};</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;</div>
<div class="line"><a name="l00398"></a><span class="lineno"><a class="code" href="class_matrix_mx_n.html">  398</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_matrix_mx_n.html">MatrixMxN</a></div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;{</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    </div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;    <a class="code" href="class_matrix_mx_n.html#aa26c1f54476e80bd693e1539b8927453">MatrixMxN</a>( <span class="keywordtype">int</span> m, <span class="keywordtype">int</span> n ); <span class="comment">// Creates a zero matrix</span></div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    </div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <a class="code" href="class_matrix_mx_n.html#aa26c1f54476e80bd693e1539b8927453">MatrixMxN</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; other );</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    </div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    <a class="code" href="class_matrix_mx_n.html#aa26c1f54476e80bd693e1539b8927453">MatrixMxN</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; A, <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; B,</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;               <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; C, <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; D );</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    </div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    <a class="code" href="class_matrix_mx_n.html#aa26c1f54476e80bd693e1539b8927453">MatrixMxN</a>( <span class="keywordtype">int</span> m, <span class="keywordtype">int</span> n, <span class="keyword">const</span> <span class="keywordtype">double</span>* values );</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    </div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    <a class="code" href="class_matrix_mx_n.html#a7ca69d25d1b478744e051ed1610ba6a6">~MatrixMxN</a>();</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    </div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; <a class="code" href="class_matrix_mx_n.html#aed6d9329b641e215fdb2ef9941ba7f43">operator =</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; other );</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    </div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_matrix_mx_n.html#a1042a2d48ffa37b7d002ec84857b8cb0">getNumRows</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;    </div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_matrix_mx_n.html#a32a4754dc06976e18968deabdf3848b7">getNumCols</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;    </div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    <a class="code" href="class_vector_n_d.html">VectorND</a> <a class="code" href="class_matrix_mx_n.html#aa87ad967e022efc94f045b15ecf97c59">getRow</a>( <span class="keywordtype">size_t</span> row ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;    </div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    <span class="keywordtype">double</span>* <a class="code" href="class_matrix_mx_n.html#aa87ad967e022efc94f045b15ecf97c59">getRow</a>( <span class="keywordtype">size_t</span> row );</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;    </div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    <a class="code" href="class_vector_n_d.html">VectorND</a> <a class="code" href="class_matrix_mx_n.html#a1bdc3f79ffb1b5e65a0010fe50ff0168">getColumn</a>( <span class="keywordtype">size_t</span> col ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    </div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    <a class="code" href="class_vector_n_d.html">VectorND</a> <a class="code" href="class_matrix_mx_n.html#a80906a3f7cdea0f2eb8e710f77cb485b">operator []</a>( <span class="keywordtype">size_t</span> row ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    </div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    <span class="keywordtype">double</span>* <a class="code" href="class_matrix_mx_n.html#a80906a3f7cdea0f2eb8e710f77cb485b">operator []</a>( <span class="keywordtype">size_t</span> row );</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    </div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a3fe71291bbb368925ab43a344dccfb70">getPiece</a>( <span class="keywordtype">int</span> rowstart, <span class="keywordtype">int</span> rowend, <span class="keywordtype">int</span> colstart, <span class="keywordtype">int</span> colend ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;    </div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#aa300812401ad6cd3e9a5d02889857516">transpose</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;    </div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a32b89585c0ad3eb558663b9cd5378c74">invert</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    </div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#aeb9e6a36563b05a274d690256a1925a4">switchVertical</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    </div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#af253a4e2644ea88bbb6e8f806b7d0623">switchHorizontal</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    </div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#aaac7eaac505c7e7e973fea07496a1b4e">invertUpperRight</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    </div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a25c588065de24cdf0c49a5fe1bb2936a">invertLowerRight</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    </div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a2c3230d1fbbe473c36a41f55e3f1efd9">invertUpperLeft</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    </div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a4647ec26ffd72fceb10a3003dcf6201e">invertLowerLeft</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    </div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a2e49e8ec8b34081eaceeac96d10db260">operator +</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;    </div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a399e59a5b73699465b67b0d296e440ef">operator -</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    </div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#aaa446aa7a21bec7aa7f6f83bde0780d4">operator *</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    </div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a9d58289b85a96d65048916e8ac6dc1f7">multiplyScalar</a>( <span class="keywordtype">double</span> s ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    </div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#ac4c1fc26a79339f7a583006f7dd99a09">transposeAndMultiply</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    </div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;    <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="class_matrix_mx_n.html#a32bc6e3104d7c7b44f6a306729c1b94b">pointwiseMultiply</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    </div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_matrix_mx_n.html#ab064a168f8c979d5eae78ee40f5e6ff4">dot</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; other ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;    </div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span>* <a class="code" href="class_matrix_mx_n.html#a3f0cde8fee9f9cb556779cfc9061e7df">begin</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    </div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span>* <a class="code" href="class_matrix_mx_n.html#a4b843b525493e7e6ab90c3532ac3ce0e">end</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;    <span class="keywordtype">int</span> mM;</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    <span class="keywordtype">int</span> mN;</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;    <span class="keywordtype">double</span>* mV;</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;};</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;<span class="comment">// operations in the global scope</span></div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;<a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keywordtype">double</span> s, <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; v );</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;<a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="_algebra_8cpp.html#aa025c19d4e3859ac5cdcdf7301fb31b0">operator +</a>( <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; b );</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;<a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="_algebra_8cpp.html#ac638052636e6afad1ec34e1bc40610bd">operator -</a>( <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; b );</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;<a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keywordtype">double</span> s, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; v );</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;<a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="_algebra_8cpp.html#aa025c19d4e3859ac5cdcdf7301fb31b0">operator +</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; b );</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;<a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="_algebra_8cpp.html#ac638052636e6afad1ec34e1bc40610bd">operator -</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; b );</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;<a class="code" href="class_vector_n_d.html">VectorND</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keywordtype">double</span> s, <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; v );</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;<a class="code" href="class_vector_n_d.html">VectorND</a> <a class="code" href="_algebra_8cpp.html#aa025c19d4e3859ac5cdcdf7301fb31b0">operator +</a>( <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; b );</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;<a class="code" href="class_vector_n_d.html">VectorND</a> <a class="code" href="_algebra_8cpp.html#ac638052636e6afad1ec34e1bc40610bd">operator -</a>( <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; b );</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;<span class="keywordtype">double</span> <a class="code" href="_algebra_8cpp.html#a17091164dc9b9b93b9d2aafef875dce1">dot</a>( <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; b );</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;<span class="keywordtype">double</span> <a class="code" href="_algebra_8cpp.html#a17091164dc9b9b93b9d2aafef875dce1">dot</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; b );</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;<a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="_algebra_8cpp.html#a098c65b80ec865f21eb305b289a9458f">cross</a>( <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; b );</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;<a class="code" href="class_matrix2x2.html">Matrix2x2</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keyword">const</span> <a class="code" href="class_matrix2x2.html">Matrix2x2</a>&amp; A, <span class="keyword">const</span> <a class="code" href="class_matrix2x2.html">Matrix2x2</a>&amp; B );</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;<a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keyword">const</span> <a class="code" href="class_matrix2x2.html">Matrix2x2</a>&amp; A, <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; b );</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;<a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a> <a class="code" href="_algebra_8cpp.html#a8b3ccbbaee2c1326fdf11e543ea759a1">matrixSolve</a>( <span class="keyword">const</span> <a class="code" href="class_matrix2x2.html">Matrix2x2</a>&amp; A, <span class="keyword">const</span> <a class="code" href="class_vector2_d.html" title="Represents a vector with 2 entries.">Vector2D</a>&amp; b );</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;<a class="code" href="class_matrix3x3.html">Matrix3x3</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keyword">const</span> <a class="code" href="class_matrix3x3.html">Matrix3x3</a>&amp; A, <span class="keyword">const</span> <a class="code" href="class_matrix3x3.html">Matrix3x3</a>&amp; B );</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;<a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keyword">const</span> <a class="code" href="class_matrix3x3.html">Matrix3x3</a>&amp; A, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; b );</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;<a class="code" href="class_vector3_d.html">Vector3D</a> <a class="code" href="_algebra_8cpp.html#a8b3ccbbaee2c1326fdf11e543ea759a1">matrixSolve</a>( <span class="keyword">const</span> <a class="code" href="class_matrix3x3.html">Matrix3x3</a>&amp; a, <span class="keyword">const</span> <a class="code" href="class_vector3_d.html">Vector3D</a>&amp; b );</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;<a class="code" href="class_vector_n_d.html">VectorND</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; A, <span class="keyword">const</span> <a class="code" href="class_vector_n_d.html">VectorND</a>&amp; b );</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;<a class="code" href="class_matrix_mx_n.html">MatrixMxN</a> <a class="code" href="_algebra_8cpp.html#ab6d6169dc4d79c3e9ab1dcfefa81abd4">operator *</a>( <span class="keywordtype">double</span> s, <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; A );</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;</div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;<span class="keywordtype">double</span> <a class="code" href="_algebra_8cpp.html#a17091164dc9b9b93b9d2aafef875dce1">dot</a>( <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; A, <span class="keyword">const</span> <a class="code" href="class_matrix_mx_n.html">MatrixMxN</a>&amp; B );</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="_algebra_8hpp.html">Algebra.hpp</a></li>
    <li class="footer">Generated on Sun Oct 28 2012 13:14:14 for Optimist Racing by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
